package dbobjects;

import dbreflection.tablemanagement.DatabaseObject;
import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DOField;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 09.01.2009
 * Time: 18:18:25
 */
@DOTable(table = "db_hierarchy_name", pk = "id")
public class DBHierarchyName extends DatabaseObject {
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "hierarchy_name")
    private String name;
    @DOField(column = "journal_id")
    private Integer journalId;

    public DBHierarchyName() {
        this.id = UNASSIGNEDINT;
        this.name = UNASSIGNEDSTRING;
        this.journalId = UNASSIGNEDINT;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return this.name;
    }

    public Integer getJournalId() {
        return journalId;
    }

    public void setJournalId(Integer journalId) {
        this.journalId = journalId;
    }
}
